import HyRequest from './request'
// 引入baseurl和时间
import { BASE_URL, TIME_OUT } from './request/config'
const wlRequest = new HyRequest({
  baseURL: BASE_URL,
  timeout: TIME_OUT,
  interceptors: {
    requestInterceptor: (config) => {
      console.log('请求成功的拦截')
      return config
    }
  }
})

export default wlRequest
